package com.example.springboot_demo.pojo;

import java.io.Serializable;


public class Book implements Serializable {
    //书本id
    private int bookId;

    //书名
    private String bookName;

    //作者
    private String author;

    //书本价格
    private double price;

    //出版社
    private String publisher;

    //库存
    private int stock;

    //书本详情
    private String detail;

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Book() {
    }
    public Book(int bookId, String bookName, String author, double price, String publisher, int stock, String detail) {
        this.bookId = bookId;
        this.bookName = bookName;
        this.author = author;
        this.price = price;
        this.publisher = publisher;
        this.stock = stock;
        this.detail = detail;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }
}
